package com.archie.zhufengfm.entity;

/**
 * Created by Archie on 2015/10/21.
 */

import com.archie.zhufengfm.entity.discoverrecommend.AlbumRecommend;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * 专辑基本信息
 * @see AlbumRecommend
 */
public class AlbumBasic {

    /**
     * albumId : 344497
     * coverLarge : http://fdfs.xmcdn.com/group6/M02/35/45/wKgDhFTg4w_SDkc9AAT-fXngGBY184_mobile_large.jpg
     * title : 黑先生在麦田咖啡馆
     * tags : 民谣,80后,文艺
     * tracks : 117
     */

    private long albumId;
    private String coverLarge;
    private String title;
    private String tags;
    // 曲目数
    private long tracks;

    public void parseJSON(JSONObject json) throws JSONException {

        if (json != null) {

            albumId = json.getLong("albumId");

            coverLarge = json.getString("coverLarge");

            title = json.getString("title");

            tags = json.getString("tags");

            tracks = json.getLong("tracks");

        }
    }

    public void setAlbumId(long albumId) {
        this.albumId = albumId;
    }

    public void setCoverLarge(String coverLarge) {
        this.coverLarge = coverLarge;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public void setTracks(long tracks) {
        this.tracks = tracks;
    }

    public long getAlbumId() {
        return albumId;
    }

    public String getCoverLarge() {
        return coverLarge;
    }

    public String getTitle() {
        return title;
    }

    public String getTags() {
        return tags;
    }

    public long getTracks() {
        return tracks;
    }
}
